import java.time.ZonedDateTime;

/**
 * Title: test1
 * Description: TODO
 *
 * @author gejx
 * @version V1.0
 * @date 2021-12-31
 */

public class test1 {
    public static void main(String[] args) {
        ZonedDateTime zbj = ZonedDateTime.now(); // 默认时区
        System.out.println(zbj);
//        ZonedDateTime zny = ZonedDateTime.now(ZoneId.of("America/New_York")); // 用指定时区获取当前时间
//        System.out.println(zny);
    }
}
